<script setup>
import {counterStore} from "../stores/counterStore";
const counter =counterStore();

</script>

<template>
    <div>
        <h3>组件2</h3>
        <p>{{ counter.count }}</p>
    </div>
</template>